body,
html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.container {
    background-image: url("../images/loginimage.png");
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: black;
    border-radius: 50%;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.form-container {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    width: 320px;
    text-align: center;
    z-index: 1;
}

h1 {
    color: black;
    margin-bottom: 1.5rem;
}

input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.2);
    color: black;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    background-color: #0e7ded;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.forgot-password {
    color: black;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

.top-right {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.top-right a {
    color: black;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.bottom-text {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: black;
    font-size: 0.8rem;
    z-index: 2;
}

#canvas {
    float:right;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.2);
    color: black;
}

.checkbox-group {
    display: flex;
    float: left;
}

#remember-password {
    width: 15px;
    height: 15px;
    margin-right: 5px;
}


/* 头像容器样式 */
.avatar-container {
    display: flex;
    float: right;
}

/* 头像图片样式 */
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 10px;
    float: right;
    margin-right: 20px;
    transform: translateY(-15px);
}

/* 头像选择界面样式 */
.avatar-selection {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

/* 头像选择界面中的头像图片样式 */
.avatar-selection img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    cursor: pointer;
    margin: 5px;
}

.containerM {
    max-width: 400px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none; /* 初始隐藏 */
    background-color: white;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}
.form-group {
    margin-bottom: 15px;
}

.containerM label {
    display: block;
    margin-bottom: 5px;
}
.containerM input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
}
.containerM button {
    width: 100%;
    padding: 10px;
    background-color: cornflowerblue;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.containerM button:hover {
    background-color: dodgerblue;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* 初始隐藏 */
    z-index: 999;
}